package com.lagou.edu.listener;

import com.lagou.edu.config.Config;
import com.lagou.edu.loader.Loader;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by swallow on 2020/10/25.
 */
public class InitListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        new Loader().load(Config.class);
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

    }
}
